package com.nwpu.coursesupport.view;

public class GradeRateItem {
	private int id;
	private int rate;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getRate() {
		return rate;
	}
	public void setRate(int rate) {
		this.rate = rate;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + id;
		result = prime * result + rate;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		GradeRateItem other = (GradeRateItem) obj;
		if (id != other.id)
			return false;
		if (rate != other.rate)
			return false;
		return true;
	}
	
	
}
